package com.gitee.wsl.ext.db

//import androidx.room.Room
//import androidx.room.RoomDatabase
//import com.gitee.wsl.Lib
//import com.gitee.wsl.appContext
//
//actual inline fun <reified T : RoomDatabase> roomDatabaseBuilder(name: String, isMultiInstance:Boolean): RoomDatabase.Builder<T> {
//    val dbFile = Lib.appContext.getDatabasePath(name)
//    return Room.databaseBuilder<T>(
//               context = Lib.appContext,
//               name = dbFile.absolutePath,
//           ).apply { if(isMultiInstance) enableMultiInstanceInvalidation() }
//}